#include "ScnsKey.c.h"

#if defined(SCNS_KEY_ENABLE)&&SCNS_KEY_ENABLE==1

#include "ScnsMenu.h"
#include "ScnsBeep.h"

static void test(ScnsKeyMsg keyMsg)
{
    if(keyMsg.status==SCNS_KEY_PRESS_DOWN)
    {
#if defined(SCNS_BEEP_ENABLE)&&SCNS_BEEP_ENABLE==1
        scnsBeepAdd("S");
#endif
    }
}

const ScnsBspKeyConfig scnsBspKeyConfig[SCNS_KEY_MAX]={
    {.name="S1",.callbacks=(void (*[])(ScnsKeyMsg)){test,NULL}},
    {.name="S2",.callbacks=(void (*[])(ScnsKeyMsg)){test,NULL}},
    {.name="S3",.callbacks=(void (*[])(ScnsKeyMsg)){test,NULL}},
    {.name="S4",.callbacks=(void (*[])(ScnsKeyMsg)){test,NULL}},
};

#endif
